#include <stdio.h>
#include <stdbool.h>


bool canPlaceFlowers(int* flowerbed, int flowerbedSize, int n)
{
    int conut = 0;
    for(int i = 0;i < flowerbedSize;i++)
    {
        if(flowerbed[i] == 1)
            conut++;
    }
    if(conut + n <= flowerbedSize - conut)
    {
        return true;
    }
    return false;
}

int main()
{
    int flowerbed[] = {1,0,0,0,0,0,1};
    int flowerbedSize = sizeof(flowerbed)/sizeof(flowerbed[0]);
    int n = 1;
    if(canPlaceFlowers(flowerbed,flowerbedSize, n))
        printf("okkkk\n");
    else
        printf("noooo\n");
    return 0;
}